/**
 * 安卓白金英雄坛制作组 <br>
 * 文件名：BottomWindow.java <br>
 * 创建时间：2013-7-26 上午9:59:25 <br>
 * 所属项目：GmudEX <br>
 * @author 12548 <br>
 */
package lostland.gmud.exv2.ui;

import lostland.gmud.exv2.FontSize;
import lostland.gmud.exv2.Game;
import lostland.gmud.exv2.GameConstants;
import lostland.gmud.exv2.blgframework.impl.BLGGraphics;
import lostland.gmud.exv2.ui.core.GmudWindow;

/**
 * 类名：BottomWindow <br>
 * 说明：底部窗口啊哈
 *
 * @author 12548
 */
public class BottomWindow extends GmudWindow {


	static final int TOP = GameConstants.FBHEIGHT / 2 - 14;
	static final int LEFT = GameConstants.FBWIDTH / 2 - 120;
	static final int WIDTH = 241;
	static final int HEIGHT = 15;

	static final int PADDING_TOP = 1;
	static final int PADDING_LEFT = 6;

	String text;

	public BottomWindow(String text) {
		super(LEFT, TOP, WIDTH, HEIGHT);
		this.text = text;
	}

	/* （非 Javadoc）
	 * @see lostland.gmud.exv2.ui.GmudWindow#draw()
	 */
	@Override
	public void draw() {
		drawBackground();
		BLGGraphics g = (BLGGraphics) Game.getInstance().getGraphics();
		g.drawText(text, LEFT + PADDING_LEFT, TOP + PADDING_TOP, FontSize.FT_12PX);
	}

}
